﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace NetWorkIcon.Web
{

    /// <summary>
    /// 
    /// </summary>
    public partial class 头像序号 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
             
            int i=1;
            //头像
           foreach( string str in System.IO.Directory.GetFiles(Server.MapPath("ClientBin/imgs")))
           {
               //重命名文件 
               System.IO.File.Move(str,System.IO.Path.GetDirectoryName(str) + "/" + (i) + System.IO.Path.GetExtension(str));

               i++;
           }

            Response.Write("头像完成");
        }
    }
}